﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Entity.Models.Entities
{
    /// <summary>
    /// 用户角色表
    /// </summary>
    public partial class R_UserInfo_RoleInfo: BaseEntity
    {
     
        /// <summary>
        /// 用户id
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string UserId { get; set; }

        /// <summary>
        /// 角色id
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string RoleId { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        public R_UserInfo_RoleInfo(string userId, string roleId)
        {
            UserId = userId;
            RoleId = roleId;
            CreateTime = DateTime.Now;
        }
        public R_UserInfo_RoleInfo()
        {
        }
    }
}
